﻿using System;
using System.Windows.Input;
using System.Windows.Interactivity;

namespace BabyCloudDrives.DesktopApp.ViewModels.Base
{
    public class MouseDoubleClickEventTrigger : EventTrigger
    {
        protected override void OnEvent(EventArgs eventArgs)
        {
            var mouseClickEvArgs = eventArgs as MouseButtonEventArgs;
            if (mouseClickEvArgs == null || mouseClickEvArgs.ClickCount != 2) return;
            base.OnEvent(eventArgs);
        }
    }
}